package cn.darkhorse.common.constant;

import io.swagger.annotations.ApiModelProperty;

/**
 * WebSocket枚举类
 */
public enum WebSocketEnum {
    /**
     * 维修单审核状态 （0：待审1：待派工2：待维修3：维修中4:待验证5：已完成6：已驳回）
     */
    REPAIR_AUDIT_STATUS_PENDING_TRIAL("维修单-待审","repair",0),
    REPAIR_AUDIT_STATUS_PENDING_DISPATCH("维修单-待派工","repair",1),
    REPAIR_AUDIT_STATUS_PENDING_REPAIR("维修单-待维修","repair",2),
    REPAIR_AUDIT_STATUS_REPAIRING("维修单-维修中","repair",3),
    REPAIR_AUDIT_STATUS_PENDING_VERIFY("维修单-待验证","repair",4),
    REPAIR_AUDIT_STATUS_FINISH("维修单-已完成","repair",5),
    REPAIR_AUDIT_STATUS_OVERRULE("维修单-已驳回","repair",6);

    @ApiModelProperty("单据类型名称")
    private final String typeName;
    @ApiModelProperty("单据类型")
    private final String type;
    @ApiModelProperty("单据状态")
    private final Integer status;
    WebSocketEnum(String typeName, String type, Integer status) {
        this.typeName=typeName;
        this.type=type;
        this.status=status;
    }

    public String getTypeName() {
        return typeName;
    }

    public String getType() {
        return type;
    }

    public Integer getStatus() {
        return status;
    }
}
